package com.atm.physical;

import java.util.Date;

import com.atm.domain.Card;
import com.atm.domain.Receipt;

//凭条打印者
public class ReceiptPrinter {
	private Receipt receipt ;
	
	// 打印凭条
	public Receipt print(Card card, Date date, int amount) {
		receipt = new Receipt(date, card, amount);
		receipt.setBusiness("取款");
		return receipt;
	}

	public Receipt getReceipt() {
		return receipt;
	}

	public void setReceipt(Receipt receipt) {
		this.receipt = receipt;
	}
}
